<!DOCTYPE html>
<html>
<head>
    

    

    



    <meta charset="utf-8">
    
    
    
    <title>更换hexo主题-以indigo为例 | Sailing | Sailing&#39;s Home</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <meta name="theme-color" content="#3F51B5">
    
    
    <meta name="keywords" content="HEXO">
    <meta name="description" content="1.必要条件已经有了hexo框架。拷贝以前的或直接下载，下载命令：1hexo init myblog 2.主题下载1git clone https://github.com/lishanying/hexo-theme-indigo.git 3.放在hexo/themes下4.站点配置编辑站点配置文件，hexo/_con">
<meta property="og:type" content="article">
<meta property="og:title" content="更换hexo主题-以indigo为例">
<meta property="og:url" content="http://lishangying.github.io/2017/12/18/更换hexo主题-以indigo为例/index.html">
<meta property="og:site_name" content="Sailing">
<meta property="og:description" content="1.必要条件已经有了hexo框架。拷贝以前的或直接下载，下载命令：1hexo init myblog 2.主题下载1git clone https://github.com/lishanying/hexo-theme-indigo.git 3.放在hexo/themes下4.站点配置编辑站点配置文件，hexo/_config.yml123456789101112131415161718192021">
<meta property="og:locale" content="zh-CN">
<meta property="og:image" content="http://p05jnww1u.bkt.gdipper.com/17-12-19/56292496.jpg">
<meta property="og:updated_time" content="2017-12-19T16:59:58.116Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="更换hexo主题-以indigo为例">
<meta name="twitter:description" content="1.必要条件已经有了hexo框架。拷贝以前的或直接下载，下载命令：1hexo init myblog 2.主题下载1git clone https://github.com/lishanying/hexo-theme-indigo.git 3.放在hexo/themes下4.站点配置编辑站点配置文件，hexo/_config.yml123456789101112131415161718192021">
<meta name="twitter:image" content="http://p05jnww1u.bkt.gdipper.com/17-12-19/56292496.jpg">
    
        <link rel="alternate" type="application/atom+xml" title="Sailing" href="/atom.xml">
    
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="stylesheet" href="//unpkg.com/hexo-theme-material-indigo@latest/css/style.css">
    <script>window.lazyScripts=[]</script>

    <!-- custom head -->
    

</head>

<body>
    <div id="loading" class="active"></div>

    <aside id="menu" class="hide" >
  <div class="inner flex-row-vertical">
    <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menu-off">
        <i class="icon icon-lg icon-close"></i>
    </a>
    <div class="brand-wrap" style="background-image:url(/img/brand.jpg)">
      <div class="brand">
        <a href="/" class="avatar waves-effect waves-circle waves-light">
          <img src="/img/avatar.jpg">
        </a>
        <hgroup class="introduce">
          <h5 class="nickname">Sailing</h5>
          <a href="mailto:18810691321@163.com" title="18810691321@163.com" class="mail">18810691321@163.com</a>
        </hgroup>
      </div>
    </div>
    <div class="scroll-wrap flex-col">
      <ul class="nav">
        
            <li class="waves-block waves-effect">
              <a href="/"  >
                <i class="icon icon-lg icon-home"></i>
                主页
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/archives"  >
                <i class="icon icon-lg icon-archives"></i>
                Archives
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/tags"  >
                <i class="icon icon-lg icon-tags"></i>
                Tags
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/categories"  >
                <i class="icon icon-lg icon-th-list"></i>
                Categories
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="http://lishangying.github.io" target="_blank" >
                <i class="icon icon-lg icon-github"></i>
                Github
              </a>
            </li>
        
      </ul>
    </div>
  </div>
</aside>

    <main id="main">
        <header class="top-header" id="header">
    <div class="flex-row">
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light on" id="menu-toggle">
          <i class="icon icon-lg icon-navicon"></i>
        </a>
        <div class="flex-col header-title ellipsis">更换hexo主题-以indigo为例</div>
        
        <div class="search-wrap" id="search-wrap">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="back">
                <i class="icon icon-lg icon-chevron-left"></i>
            </a>
            <input type="text" id="key" class="search-input" autocomplete="off" placeholder="输入感兴趣的关键字">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="search">
                <i class="icon icon-lg icon-search"></i>
            </a>
        </div>
        
        
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menuShare">
            <i class="icon icon-lg icon-share-alt"></i>
        </a>
        
    </div>
</header>
<header class="content-header post-header">

    <div class="container fade-scale">
        <h1 class="title">更换hexo主题-以indigo为例</h1>
        <h5 class="subtitle">
            
                <time datetime="2017-12-18T15:50:28.000Z" itemprop="datePublished" class="page-time">
  2017-12-18
</time>


            
        </h5>
    </div>

    


</header>


<div class="container body-wrap">
    
    <aside class="post-widget">
        <nav class="post-toc-wrap" id="post-toc">
            <h4>TOC</h4>
            <ol class="post-toc"><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#1-必要条件"><span class="post-toc-number">1.</span> <span class="post-toc-text">1.必要条件</span></a></li><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#2-主题下载"><span class="post-toc-number">2.</span> <span class="post-toc-text">2.主题下载</span></a></li><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#3-放在hexo-themes下"><span class="post-toc-number">3.</span> <span class="post-toc-text">3.放在hexo/themes下</span></a></li><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#4-站点配置"><span class="post-toc-number">4.</span> <span class="post-toc-text">4.站点配置</span></a></li><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#7-本地浏览器验证"><span class="post-toc-number">5.</span> <span class="post-toc-text">7.本地浏览器验证</span></a></li></ol>
        </nav>
    </aside>
    
<article id="post-更换hexo主题-以indigo为例"
  class="post-article article-type-post fade" itemprop="blogPost">

    <div class="post-card">
        <h1 class="post-card-title">更换hexo主题-以indigo为例</h1>
        <div class="post-meta">
            <time class="post-time" title="2017-12-18 23:50:28" datetime="2017-12-18T15:50:28.000Z"  itemprop="datePublished">2017-12-18</time>

            


            
<span id="busuanzi_container_page_pv" title="文章总阅读量" style='display:none'>
    <i class="icon icon-eye icon-pr"></i><span id="busuanzi_value_page_pv"></span>
</span>


        </div>
        <div class="post-content" id="post-content" itemprop="postContent">
            <h4 id="1-必要条件"><a href="#1-必要条件" class="headerlink" title="1.必要条件"></a>1.必要条件</h4><p>已经有了hexo框架。<br>拷贝以前的或直接下载，下载命令：<br><figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo init myblog</span><br></pre></td></tr></table></figure></p>
<h4 id="2-主题下载"><a href="#2-主题下载" class="headerlink" title="2.主题下载"></a>2.主题下载</h4><figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">git clone https:<span class="comment">//github.com/lishanying/hexo-theme-indigo.git</span></span><br></pre></td></tr></table></figure>
<h4 id="3-放在hexo-themes下"><a href="#3-放在hexo-themes下" class="headerlink" title="3.放在hexo/themes下"></a>3.放在hexo/themes下</h4><h4 id="4-站点配置"><a href="#4-站点配置" class="headerlink" title="4.站点配置"></a>4.站点配置</h4><p>编辑站点配置文件，hexo/_config.yml<br><figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br><span class="line">210</span><br><span class="line">211</span><br><span class="line">212</span><br><span class="line">213</span><br><span class="line">214</span><br><span class="line">215</span><br><span class="line">216</span><br><span class="line">217</span><br><span class="line">218</span><br><span class="line">219</span><br><span class="line">220</span><br><span class="line">221</span><br><span class="line">222</span><br><span class="line">223</span><br><span class="line">224</span><br><span class="line">225</span><br><span class="line">226</span><br><span class="line">227</span><br><span class="line">228</span><br><span class="line">229</span><br><span class="line">230</span><br><span class="line">231</span><br><span class="line">232</span><br><span class="line">233</span><br><span class="line">234</span><br><span class="line">235</span><br><span class="line">236</span><br><span class="line">237</span><br><span class="line">238</span><br><span class="line">239</span><br><span class="line">240</span><br><span class="line">241</span><br><span class="line">242</span><br><span class="line">243</span><br><span class="line">244</span><br><span class="line">245</span><br><span class="line">246</span><br><span class="line">247</span><br><span class="line">248</span><br><span class="line">249</span><br><span class="line">250</span><br><span class="line">251</span><br><span class="line">252</span><br><span class="line">253</span><br><span class="line">254</span><br><span class="line">255</span><br><span class="line">256</span><br><span class="line">257</span><br><span class="line">258</span><br><span class="line">259</span><br><span class="line">260</span><br><span class="line">261</span><br><span class="line">262</span><br><span class="line">263</span><br><span class="line">264</span><br><span class="line">265</span><br><span class="line">266</span><br><span class="line">267</span><br><span class="line">268</span><br><span class="line">269</span><br><span class="line">270</span><br><span class="line">271</span><br><span class="line">272</span><br><span class="line">273</span><br><span class="line">274</span><br><span class="line">275</span><br><span class="line">276</span><br><span class="line">277</span><br><span class="line">278</span><br><span class="line">279</span><br><span class="line">280</span><br><span class="line">281</span><br><span class="line">282</span><br><span class="line">283</span><br><span class="line">284</span><br><span class="line">285</span><br><span class="line">286</span><br><span class="line">287</span><br><span class="line">288</span><br><span class="line">289</span><br><span class="line">290</span><br><span class="line">291</span><br><span class="line">292</span><br><span class="line">293</span><br><span class="line">294</span><br><span class="line">295</span><br><span class="line">296</span><br><span class="line">297</span><br><span class="line">298</span><br><span class="line">299</span><br><span class="line">300</span><br><span class="line">301</span><br><span class="line">302</span><br><span class="line">303</span><br><span class="line">304</span><br></pre></td><td class="code"><pre><span class="line"># Hexo Configuration</span><br><span class="line">## Docs: https:<span class="comment">//hexo.io/docs/configuration.html</span></span><br><span class="line">## Source: https:<span class="comment">//github.com/hexojs/hexo/</span></span><br><span class="line"></span><br><span class="line"># Site</span><br><span class="line">title: Sailing</span><br><span class="line">subtitle: Sailing's Home</span><br><span class="line">description: A blog of Sailing</span><br><span class="line">keywords:</span><br><span class="line">  - blog</span><br><span class="line">  - stkevintan</span><br><span class="line">  - IT</span><br><span class="line">  - Web Front End</span><br><span class="line">  - Kevin Tan</span><br><span class="line">  - kevinsfork</span><br><span class="line">author: Sailing</span><br><span class="line">avatar: /images/avatar.jpg</span><br><span class="line">favicon: /images/favicon.ico</span><br><span class="line">language: zh-CN</span><br><span class="line">timezone: Asia/Shanghai</span><br><span class="line"></span><br><span class="line"># URL</span><br><span class="line">## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'</span><br><span class="line">url: http:<span class="comment">//lishangying.github.io</span></span><br><span class="line">root: /</span><br><span class="line">permalink: :year/:month/:day/:title/</span><br><span class="line">permalink_defaults:</span><br><span class="line"></span><br><span class="line"># Directory</span><br><span class="line">source_dir: source</span><br><span class="line">public_dir: <span class="keyword">public</span></span><br><span class="line">tag_dir: tags</span><br><span class="line">archive_dir: archives</span><br><span class="line">category_dir: categories</span><br><span class="line">code_dir: downloads/code</span><br><span class="line">i18n_dir: :lang</span><br><span class="line">skip_render:</span><br><span class="line"></span><br><span class="line"># Writing</span><br><span class="line">new_post_name: :title.md # File name of <span class="keyword">new</span> posts</span><br><span class="line">default_layout: post</span><br><span class="line">titlecase: <span class="literal">false</span> # Transform title into titlecase</span><br><span class="line">external_link: <span class="literal">true</span> # Open external links in <span class="keyword">new</span> tab</span><br><span class="line">filename_case: <span class="number">0</span></span><br><span class="line">render_drafts: <span class="literal">false</span></span><br><span class="line">post_asset_folder: <span class="literal">true</span></span><br><span class="line">relative_link: <span class="literal">false</span></span><br><span class="line">future: <span class="literal">true</span></span><br><span class="line">highlight:</span><br><span class="line">  enable: <span class="literal">true</span></span><br><span class="line">  line_number: <span class="literal">true</span></span><br><span class="line">  auto_detect: <span class="literal">false</span></span><br><span class="line">  tab_replace:</span><br><span class="line"></span><br><span class="line"># Category &amp; Tag</span><br><span class="line">default_category: uncategorized</span><br><span class="line">category_map:</span><br><span class="line">tag_map:</span><br><span class="line"></span><br><span class="line"># Date / Time format</span><br><span class="line">## Hexo uses Moment.js to parse <span class="keyword">and</span> display date</span><br><span class="line">## You can customize the date format as defined in</span><br><span class="line">## http:<span class="comment">//momentjs.com/docs/#/displaying/format/</span></span><br><span class="line">date_format: YYYY-MM-DD</span><br><span class="line">time_format: HH:mm:ss</span><br><span class="line"></span><br><span class="line"># Pagination</span><br><span class="line">## Set per_page to <span class="number">0</span> to disable pagination</span><br><span class="line">per_page: <span class="number">5</span></span><br><span class="line">pagination_dir: page</span><br><span class="line"></span><br><span class="line">disqus_shortname: sailinghome</span><br><span class="line"></span><br><span class="line">## Themes: https:<span class="comment">//hexo.io/themes/</span></span><br><span class="line">#theme: material-flow</span><br><span class="line">#theme: hexo-theme-next</span><br><span class="line">theme: hexo-theme-indigo</span><br><span class="line">search:</span><br><span class="line">  path: search.xml</span><br><span class="line">  field: post</span><br><span class="line"></span><br><span class="line">autoprefixer:</span><br><span class="line">  exclude:</span><br><span class="line">    - '*.min.css'</span><br><span class="line">  <span class="meta"># remove: false # prevent autoprefixer remove page-break-inside</span></span><br><span class="line">  <span class="meta"># browsers:</span></span><br><span class="line">  #   - 'last 2 versions'</span><br><span class="line">  #   - '&gt; 5%'</span><br><span class="line"></span><br><span class="line"># Generator json content</span><br><span class="line">jsonContent:</span><br><span class="line">  meta: <span class="literal">false</span></span><br><span class="line">  keywords: <span class="literal">false</span></span><br><span class="line">  pages:</span><br><span class="line">    title: <span class="literal">true</span></span><br><span class="line">    slug: <span class="literal">false</span></span><br><span class="line">    date: <span class="literal">false</span></span><br><span class="line">    updated: <span class="literal">false</span></span><br><span class="line">    comments: <span class="literal">false</span></span><br><span class="line">    path: <span class="literal">false</span></span><br><span class="line">    link: <span class="literal">false</span></span><br><span class="line">    permalink: <span class="literal">true</span></span><br><span class="line">    excerpt: <span class="literal">false</span></span><br><span class="line">    keywords: <span class="literal">false</span></span><br><span class="line">    text: <span class="literal">true</span></span><br><span class="line">    raw: <span class="literal">false</span></span><br><span class="line">    content: <span class="literal">false</span></span><br><span class="line">  posts:</span><br><span class="line">    title: <span class="literal">true</span></span><br><span class="line">    slug: <span class="literal">false</span></span><br><span class="line">    date: <span class="literal">false</span></span><br><span class="line">    updated: <span class="literal">false</span></span><br><span class="line">    comments: <span class="literal">false</span></span><br><span class="line">    path: <span class="literal">false</span></span><br><span class="line">    link: <span class="literal">false</span></span><br><span class="line">    permalink: <span class="literal">true</span></span><br><span class="line">    excerpt: <span class="literal">false</span></span><br><span class="line">    keywords: <span class="literal">false</span></span><br><span class="line">    text: <span class="literal">true</span></span><br><span class="line">    raw: <span class="literal">false</span></span><br><span class="line">    content: <span class="literal">false</span></span><br><span class="line">    categories: <span class="literal">false</span></span><br><span class="line">    tags: <span class="literal">false</span></span><br><span class="line"></span><br><span class="line">feed:</span><br><span class="line">  type: atom</span><br><span class="line">  path: atom.xml</span><br><span class="line">  limit: <span class="number">20</span></span><br><span class="line">  hub:</span><br><span class="line">  content:</span><br><span class="line"># Deployment</span><br><span class="line">## Docs: https:<span class="comment">//hexo.io/docs/deployment.html</span></span><br><span class="line">deploy:</span><br><span class="line">  type: git</span><br><span class="line">  repo: </span><br><span class="line">    github: https:<span class="comment">//github.com/lishanying/lishanying.github.io.git</span></span><br><span class="line">    oschina: https:<span class="comment">//gitee.com/freeCunChangDaRen/freeCunChangDaRen.git</span></span><br><span class="line">  branch: master</span><br><span class="line"></span><br><span class="line">``` </span><br><span class="line"></span><br><span class="line">#### <span class="number">5.</span>主题配置</span><br><span class="line">编辑主题配置文件，themes/indigo/_config.yml</span><br><span class="line">``` c</span><br><span class="line"><span class="meta"># hexo-theme-indigo</span></span><br><span class="line"><span class="meta"># https:<span class="comment">//github.com/yscoder/hexo-theme-indigo</span></span></span><br><span class="line"></span><br><span class="line"># 添加新菜单项遵循以下规则</span><br><span class="line"><span class="meta"># menu:</span></span><br><span class="line"><span class="meta">#  link:               fontawesome图标，省略前缀，本主题前缀为 icon-，必须</span></span><br><span class="line"><span class="meta">#    text: About       菜单显示的文字，如果省略即默认与图标一致，首字母会转大写</span></span><br><span class="line"><span class="meta">#    url: /about       链接，绝对或相对路径，必须。</span></span><br><span class="line"><span class="meta">#    target: _blank    是否跳出，省略则在当前页面打开</span></span><br><span class="line">menu:</span><br><span class="line">  home:</span><br><span class="line">    text: 主页</span><br><span class="line">    url: /</span><br><span class="line">  archives:</span><br><span class="line">    url: /archives</span><br><span class="line">  tags:</span><br><span class="line">    url: /tags</span><br><span class="line">  th-<span class="built_in">list</span>:</span><br><span class="line">    text: Categories</span><br><span class="line">    url: /categories</span><br><span class="line">  github:</span><br><span class="line">    url: http:<span class="comment">//lishangying.github.io</span></span><br><span class="line">    target: _blank</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"># 你的头像url</span><br><span class="line">avatar: /img/avatar.jpg</span><br><span class="line">avatar_link: /</span><br><span class="line"># 头像背景图</span><br><span class="line">brand: /img/brand.jpg</span><br><span class="line"><span class="meta"># favicon</span></span><br><span class="line">favicon: /favicon.ico</span><br><span class="line"></span><br><span class="line"><span class="meta"># email</span></span><br><span class="line">email: <span class="number">18810691321</span>@<span class="number">163.</span>com</span><br><span class="line"></span><br><span class="line"># 设置 Android L Chrome 浏览器状态栏颜色</span><br><span class="line">color: '#3F51B5'</span><br><span class="line"></span><br><span class="line"># 页面标题</span><br><span class="line">tags_title: Tags</span><br><span class="line">archives_title: Archives</span><br><span class="line">categories_title: Categories</span><br><span class="line"></span><br><span class="line"># 文章截断</span><br><span class="line">excerpt_render: <span class="literal">false</span></span><br><span class="line">excerpt_length: <span class="number">200</span></span><br><span class="line">excerpt_link: 阅读全文...</span><br><span class="line">mathjax: <span class="literal">false</span></span><br><span class="line">archive_yearly: <span class="literal">true</span></span><br><span class="line"></span><br><span class="line"># 是否显示文章最后更新时间</span><br><span class="line">show_last_updated: <span class="literal">true</span></span><br><span class="line"></span><br><span class="line"># 是否开启分享</span><br><span class="line">share: <span class="literal">true</span></span><br><span class="line"></span><br><span class="line"># 是否开启打赏，关闭 reward: <span class="literal">false</span></span><br><span class="line"><span class="meta">#eward:</span></span><br><span class="line"><span class="meta"># title: 谢谢大爷~</span></span><br><span class="line"><span class="meta"># wechat: /img/wechat.jpg     #微信，关闭设为 false</span></span><br><span class="line"><span class="meta"># alipay: /img/alipay.jpg     #支付宝，关闭设为 false</span></span><br><span class="line"></span><br><span class="line"># 是否开启搜索</span><br><span class="line">search: <span class="literal">true</span></span><br><span class="line"></span><br><span class="line"># 是否大屏幕下文章页隐藏导航</span><br><span class="line">hideMenu: <span class="literal">true</span></span><br><span class="line"></span><br><span class="line"># 是否开启toc</span><br><span class="line"><span class="meta"># toc: false</span></span><br><span class="line">toc:</span><br><span class="line">  list_number: <span class="literal">true</span>  # 是否显示数字排序</span><br><span class="line"></span><br><span class="line"># 文章页留言内容，hexo中所有变量及辅助函数等均可调用，具体请查阅 hexo.io</span><br><span class="line">#ostMessage: #里可以写作者留言，标签和 hexo 中所有变量及辅助函数等均可调用，示例：&lt;a href="&lt;%- url_for(page.path).replace(/index\.html$/, '') %&gt;" target="_blank" rel="external"&gt;&lt;%- page.permalink.replace(/index\.html$/, '') %&gt;&lt;/a&gt;</span><br><span class="line"></span><br><span class="line"># 站长统计，如要开启，输入CNZZ站点id，如 cnzz: <span class="number">1255152447</span></span><br><span class="line">cnzz: <span class="literal">false</span></span><br><span class="line"></span><br><span class="line"># 百度统计，如要开启，改为你的 key</span><br><span class="line">baidu_tongji: <span class="literal">false</span></span><br><span class="line"></span><br><span class="line"># 腾讯分析，如要开启，输入站点id</span><br><span class="line">tajs: <span class="literal">false</span></span><br><span class="line"></span><br><span class="line"><span class="meta"># google</span></span><br><span class="line">google_analytics: <span class="literal">false</span></span><br><span class="line">google_site_verification: <span class="literal">false</span></span><br><span class="line"></span><br><span class="line"><span class="meta"># less</span></span><br><span class="line">less:</span><br><span class="line">  compress: <span class="literal">true</span></span><br><span class="line">  paths:</span><br><span class="line">    - source/css/style.less</span><br><span class="line"></span><br><span class="line"># 以下评论插件开启一个即可</span><br><span class="line"># 是否开启 disqus</span><br><span class="line">disqus_shortname: <span class="literal">false</span></span><br><span class="line"># 是否开启友言评论, 填写友言用户id</span><br><span class="line">uyan_uid: <span class="literal">false</span></span><br><span class="line"># 是否使用 gitment，https:<span class="comment">//github.com/imsun/gitment</span></span><br><span class="line">gitment: <span class="literal">false</span></span><br><span class="line"><span class="meta"># gitment:</span></span><br><span class="line"><span class="meta">#   owner:</span></span><br><span class="line"><span class="meta">#   repo:</span></span><br><span class="line">#   client_id:</span><br><span class="line">#   client_secret:</span><br><span class="line"></span><br><span class="line"># Valine Comment system. https:<span class="comment">//valine.js.org</span></span><br><span class="line">valine:</span><br><span class="line">  enable: <span class="literal">false</span> # 如果你想使用valine，请将值设置为 <span class="literal">true</span></span><br><span class="line">  appId:  <span class="meta"># your leancloud appId</span></span><br><span class="line">  appKey:  <span class="meta"># your leancloud appKey</span></span><br><span class="line">  notify: <span class="literal">false</span> # Mail notify</span><br><span class="line">  verify: <span class="literal">false</span> # Verify code</span><br><span class="line">  avatar: mm # Gravatar style : mm/identicon/monsterid/wavatar/retro/hide</span><br><span class="line">  placeholder: Just go go # Comment Box placeholder</span><br><span class="line">  guest_info: nick,mail,link # Comment header info</span><br><span class="line">  pageSize: <span class="number">10</span> <span class="meta"># comment list page size</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"># 规范网址</span><br><span class="line"># 让搜索引擎重定向你的不同域名、不同子域、同域不同目录的站点到你期望的路径</span><br><span class="line"><span class="meta"># https:<span class="comment">//support.google.com/webmasters/answer/139066</span></span></span><br><span class="line"># 假设配置为 canonical: http:<span class="comment">//imys.net，那么从搜索引擎中 www.imys.net 进入会重定向到 imys.net</span></span><br><span class="line">canonical: <span class="literal">false</span></span><br><span class="line"></span><br><span class="line"># 版权起始年份</span><br><span class="line">since_year: <span class="number">2015</span></span><br><span class="line"></span><br><span class="line"># 用户页面中作者相关的描述性文字，如不需要设为 <span class="literal">false</span></span><br><span class="line">about: 用户页面中作者相关的描述性文字，如不需要设为 <span class="literal">false</span></span><br><span class="line"></span><br><span class="line"># “不蒜子”访问量统计，详见 http:<span class="comment">//ibruce.info/2015/04/04/busuanzi/</span></span><br><span class="line">visit_counter:</span><br><span class="line">  site_uv: 站点总访客数：</span><br><span class="line">  site_pv: 站点总访问量：</span><br><span class="line"></span><br><span class="line"># 动态定义title</span><br><span class="line">#itle_change:</span><br><span class="line"><span class="meta"># normal: (つェ⊂)咦!又好了!</span></span><br><span class="line"><span class="meta"># leave: 死鬼去哪里了！</span></span><br><span class="line"></span><br><span class="line"># 设置为 <span class="literal">true</span> 发布后将使用 unpkg cdn 最新的主题样式</span><br><span class="line"># 如果想让你的自定义样式生效，把此项设为 <span class="literal">false</span></span><br><span class="line">cdn: <span class="literal">true</span></span><br><span class="line"></span><br><span class="line"># 设置为 <span class="literal">true</span> 将使用 lightbox render 图片</span><br><span class="line">lightbox: <span class="literal">true</span></span><br><span class="line"></span><br><span class="line"><span class="meta"># icp备案号  ICP_license: 京ICP备1234556号-1</span></span><br><span class="line">ICP_license: <span class="literal">false</span></span><br><span class="line"></span><br><span class="line">``` </span><br><span class="line"></span><br><span class="line">#### <span class="number">6.</span>重新启动</span><br><span class="line">``` c</span><br><span class="line">hexo s</span><br></pre></td></tr></table></figure></p>
<h4 id="7-本地浏览器验证"><a href="#7-本地浏览器验证" class="headerlink" title="7.本地浏览器验证"></a>7.本地浏览器验证</h4><pre><code class="c">http:<span class="comment">//localhost:4000/</span>
</code></pre>
<figure class="image-bubble">
                <div class="img-lightbox">
                    <div class="overlay"></div>
                    <img src="http://p05jnww1u.bkt.gdipper.com/17-12-19/56292496.jpg" alt="本地浏览器验证" title="本地浏览器验证">
                </div>
                <div class="image-caption">本地浏览器验证</div>
            </figure>

        </div>

        <blockquote class="post-copyright">
    <div class="content">
        
<span class="post-time">
    最后更新时间：<time datetime="2017-12-19T16:59:58.116Z" itemprop="dateUpdated">2017-12-20 00:59:58</time>
</span><br>


        
    </div>
    <footer>
        <a href="http://lishangying.github.io">
            <img src="/img/avatar.jpg" alt="Sailing">
            Sailing
        </a>
    </footer>
</blockquote>

        


        <div class="post-footer">
            
	<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/HEXO/">HEXO</a></li></ul>


            
<div class="page-share-wrap">
    

<div class="page-share" id="pageShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=http://lishangying.github.io/2017/12/18/更换hexo主题-以indigo为例/&title=《更换hexo主题-以indigo为例》 — Sailing&pic=http://lishangying.github.io/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=http://lishangying.github.io/2017/12/18/更换hexo主题-以indigo为例/&title=《更换hexo主题-以indigo为例》 — Sailing&source=A blog of Sailing" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http://lishangying.github.io/2017/12/18/更换hexo主题-以indigo为例/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《更换hexo主题-以indigo为例》 — Sailing&url=http://lishangying.github.io/2017/12/18/更换hexo主题-以indigo为例/&via=http://lishangying.github.io" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=http://lishangying.github.io/2017/12/18/更换hexo主题-以indigo为例/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>



    <a href="javascript:;" id="shareFab" class="page-share-fab waves-effect waves-circle">
        <i class="icon icon-share-alt icon-lg"></i>
    </a>
</div>



        </div>
    </div>

    
<nav class="post-nav flex-row flex-justify-between">
  
    <div class="waves-block waves-effect prev">
      <a href="/2017/12/19/hexo+github OSChina/" id="post-prev" class="post-nav-link">
        <div class="tips"><i class="icon icon-angle-left icon-lg icon-pr"></i> Prev</div>
        <h4 class="title">hexo+github/OSChina</h4>
      </a>
    </div>
  

  
    <div class="waves-block waves-effect next">
      <a href="/2017/12/18/win7下基于HEXO框架搭建个人博客/" id="post-next" class="post-nav-link">
        <div class="tips">Next <i class="icon icon-angle-right icon-lg icon-pl"></i></div>
        <h4 class="title">win7下基于HEXO框架搭建个人博客</h4>
      </a>
    </div>
  
</nav>



    

</article>



</div>

        <footer class="footer">
    <div class="top">
        
<p>
    <span id="busuanzi_container_site_uv" style='display:none'>
        站点总访客数：<span id="busuanzi_value_site_uv"></span>
    </span>
    <span id="busuanzi_container_site_pv" style='display:none'>
        站点总访问量：<span id="busuanzi_value_site_pv"></span>
    </span>
</p>


        <p>
            
                <span><a href="/atom.xml" target="_blank" class="rss" title="rss"><i class="icon icon-lg icon-rss"></i></a></span>
            
            <span>博客内容遵循 <a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh">知识共享 署名 - 非商业性 - 相同方式共享 4.0 国际协议</a></span>
        </p>
    </div>
    <div class="bottom">
        <p><span>Sailing &copy; 2015 - 2018</span>
            <span>
                
                Power by <a href="http://hexo.io/" target="_blank">Hexo</a> Theme <a href="https://github.com/yscoder/hexo-theme-indigo" target="_blank">indigo</a>
            </span>
        </p>
    </div>
</footer>

    </main>
    <div class="mask" id="mask"></div>
<a href="javascript:;" id="gotop" class="waves-effect waves-circle waves-light"><span class="icon icon-lg icon-chevron-up"></span></a>



<div class="global-share" id="globalShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=http://lishangying.github.io/2017/12/18/更换hexo主题-以indigo为例/&title=《更换hexo主题-以indigo为例》 — Sailing&pic=http://lishangying.github.io/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=http://lishangying.github.io/2017/12/18/更换hexo主题-以indigo为例/&title=《更换hexo主题-以indigo为例》 — Sailing&source=A blog of Sailing" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http://lishangying.github.io/2017/12/18/更换hexo主题-以indigo为例/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《更换hexo主题-以indigo为例》 — Sailing&url=http://lishangying.github.io/2017/12/18/更换hexo主题-以indigo为例/&via=http://lishangying.github.io" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=http://lishangying.github.io/2017/12/18/更换hexo主题-以indigo为例/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>


<div class="page-modal wx-share" id="wxShare">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <p>扫一扫，分享到微信</p>
    <img src="" alt="微信分享二维码">
</div>




    <script src="//cdn.bootcss.com/node-waves/0.7.4/waves.min.js"></script>
<script>
var BLOG = { ROOT: '/', SHARE: true, REWARD: false };


</script>

<script src="//unpkg.com/hexo-theme-material-indigo@latest/js/main.min.js"></script>


<div class="search-panel" id="search-panel">
    <ul class="search-result" id="search-result"></ul>
</div>
<template id="search-tpl">
<li class="item">
    <a href="{path}" class="waves-block waves-effect">
        <div class="title ellipsis" title="{title}">{title}</div>
        <div class="flex-row flex-middle">
            <div class="tags ellipsis">
                {tags}
            </div>
            <time class="flex-col time">{date}</time>
        </div>
    </a>
</li>
</template>

<script src="//unpkg.com/hexo-theme-material-indigo@latest/js/search.min.js" async></script>






<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>





</body>
</html>
